package com.nlp.server.service;

import com.nlp.common.core.web.pojo.AjaxResult;
import com.nlp.server.pojo.dto.ChatDTO;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

/**
 * 会话服务层接口
 * @author shiliuyinzhen
 */
@Service
public interface ChatService {

    /**
     * 开启新会话
     * @return
     */
    AjaxResult createChat();

    /**
     * 查询问题
     *
     * @param chatDTO
     * @param sseEmitter
     * @return
     */
    void query(ChatDTO chatDTO, SseEmitter sseEmitter);

}
